package com.wy;

import com.wy.util.HttpClientHelper;
import org.apache.commons.httpclient.HttpClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;

/**
 * @author wangyu
 * @Description
 * @create 2020-06-22 17:07
 */
@EnableDiscoveryClient
@SpringBootApplication
public class MainApplication {
    public static void main(String[] args) {
        SpringApplication.run(MainApplication.class);
    }

    @Bean
    public HttpClientHelper getHttpClientHelper() {
        return new HttpClientHelper();
    }
    // 创建httpClient实例对象
    @Bean
    public HttpClient getHttpClient() {
        return new HttpClient();
    }
}
